package net.beyondts.example.mplug.extension;

import net.beyondts.mplug.ConfigurableExtensionHandler;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * Project: mplug-project<br/>
 * Description: <br/>
 * Created at: 2019-1-13<br/>
 * Owned by beyondts.
 *
 * @author blazecrystal
 * @version 1.0.0
 */
@Aspect
@Component
public class SomeConfigurableExtensionHandler extends ConfigurableExtensionHandler {
    public SomeConfigurableExtensionHandler() throws IOException {
        super();
    }

    @Around("within(net.beyondts.example..*)")
//    @Around("execution(* net.beyondts.example..*(..))")
    public Object handle(ProceedingJoinPoint joinPoint) throws Throwable {
        return super.handle(joinPoint);
    }

    @Around("within(net.beyondts.mplug.test..*)")
//    @Around("execution(* net.beyondts.example..*(..))")
    public Object handle2(ProceedingJoinPoint joinPoint) throws Throwable {
        return super.handle(joinPoint);
    }
}
